package com.ruoyi.voucher.service.impl;

import com.ruoyi.voucher.domain.VoucherWord;
import com.ruoyi.voucher.mapper.VoucherWordMapper;
import com.ruoyi.voucher.service.IVoucherWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: qk
 * @create: 2025-02-27 16:55
 **/
@Service
public class IVoucherWordServiceImpl implements IVoucherWordService {
    @Autowired
    VoucherWordMapper voucherWordMapper;

    @Override
    public List<VoucherWord> selectVoucherWordList(VoucherWord voucherWord) {
        return voucherWordMapper.selectVoucherWordList(voucherWord);
    }

    @Override
    public VoucherWord selectVoucherWordByWordId(Long wordId) {
        return voucherWordMapper.selectVoucherWordByWordId(wordId);
    }

    @Override
    public int insertVoucherWord(VoucherWord voucherWord) {
        return voucherWordMapper.insertVoucherWord(voucherWord);
    }

    @Override
    public int updateVoucherWord(VoucherWord voucherWord) {
        return voucherWordMapper.updateVoucherWord(voucherWord);
    }

    @Override
    public int deleteVoucherWordByWordIds(Long[] wordIds) {
        return voucherWordMapper.deleteVoucherWordByWordIds(wordIds);
    }
}
